package mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import model.THospital;

public interface THospitalMapper {
	int dynaUpdateByPrimaryKey(THospital record);
	
	List<THospital> selectByAreaAndGrade(
			@Param("area") String area,
			@Param("grade") String grade
	);
	
	THospital selecTHospitalsAndDept(
			@Param("hName") String hName
	);
	
	int insertMany(
			@Param("hospitals") List<THospital> hospitals
			
			);
	
    int deleteByPrimaryKey(Integer hid);

    int insert(THospital record);

    THospital selectByPrimaryKey(Integer hid);

    List<THospital> selectAll();

    int updateByPrimaryKey(THospital record);
}